package cn.yzgy.yzgyoa.ucenter.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 登录信息传输对象
 *
 * @author Yqsen
 * @since 2019-8-21 13:54:39
 */
@Data
@Accessors(chain = true)
public class LoginInfoDTO {

    @NotBlank
    @Length(min = 1, max = 16)
    private String userName;

    @NotBlank
    @Length(min = 16,max = 32,message = "密码长度异常")
    private String psw;
}
